package util;

public class Pair implements Comparable {

	int _score;
	int _ZDDId;
	
	public Pair(int score, int ZDDId) {
		this._score = score;
		this._ZDDId = ZDDId;					
	}
	
	public int getScore() {
		return _score;
	}
	
	public int getZDDId() {
		return _ZDDId;
	}

	@Override
	public int compareTo(Object o) {
		Pair oTmp = (Pair)o;
		if (_score > oTmp._score) {
			return 1;
		} else if (_score < oTmp._score) {
			return -1;
		} else {
			return 0;
		}
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}

